function [ scaled_image ] = my_crop_vectorial( image, width, height, x, y )
    imgmax = double(max(image(:)));
    cropped_image = zeros(height, width);
    cropped_image(1:1:height, 1:1:width) = double(image(y:1:(y+height-1), x:1:(x+width-1))) ./ imgmax;
    h = uint32(height / 3 - 1);
    w = uint32(width / 3 - 1);
    scaled_image = zeros(h, w);
    scaled_image(1:1:h, 1:1:w) = cropped_image(1:3:(h*3), 1:3:(w*3));
end

